package com.szrt.javaweb.menu.dao;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.szrt.javaweb.menu.entity.MenuEntity;

public interface MenuDao {
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED,isolation=Isolation.REPEATABLE_READ, readOnly=true)
	int add(MenuEntity entity);
	
	MenuEntity findById(int id);
}
